#pragma once

#include <afxcoll.h>
#include <afxtempl.h>
#include <afxdisp.h>
#include <afxcmn.h>
#include "..\DataBase\include\UDataBase.h"

class YUserInfo;

class YDbCmd
{
public:
	YDbCmd(void);
public:
	~YDbCmd(void);
public:
	BOOL GetUserInfoByNameAndPwd(YUserInfo* pYUserInfo);
public:
	COleDateTime GetServerDateTime(void);

	CString SqlFilterToDb(CString strSqlField);

	CString SqlFilterToDb(TCHAR* pValue);

	CString SqlFilterToStr(CString strSqlField);
};
